#ifndef HARDWAREDRIVER_H
#define HARDWAREDRIVER_H

#include <QObject>
#include <QTimer>
#ifdef M1515
#include "M1515//hisi_dev.h"
#endif

class HardwareDriver : public QObject
{
    Q_OBJECT
public:
    explicit HardwareDriver(QObject *parent = 0);
    ~HardwareDriver();
    void startBeep(bool continuously);
    void stopBeep();
    void setBeeperVolume(int level);
    bool setBeeperTime(int msec);
    void setBrightness(int val);
    void setBeepEnable(bool rxEnable);
private slots:
    void slotTimer();

private:
    QTimer *timer;
    int beepInterval;
    bool beeping;
    bool lightAuto;
    bool beepEnable;
    int beepVolume;
};

#endif // HARDWAREDRIVER_H
